package com.cq.hd.order.api.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.cq.hd.common.serialize.Decimal2Serializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class AdminCommissionOrderPageVo implements Serializable {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "订单号")
    private String orderNo;

    @ApiModelProperty(value = "活动id")
    private Long activeId;

    @ApiModelProperty(value = "活动名称")
    private String activeTitle;

    @ApiModelProperty(value = "商家id")
    private Long businessId;

    @ApiModelProperty(value = "商家简称")
    private String businessShortName;

    @ApiModelProperty(value = "经纪人名称")
    private String agentNickName;

    @ApiModelProperty(value = "经纪人手机号")
    private String agentMobile;

    @ApiModelProperty(value = "订单总价")
    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal orderPrice;

    @ApiModelProperty(value = "实付金额")
    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal payPrice;

    @ApiModelProperty(value = "预估佣金")
    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal actualCommissionAmt;

    @ApiModelProperty(value = "结算佣金")
    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal settledCommissionAmt;

    @JSONField(format="yyyy.MM.dd HH:mm:ss")
    @ApiModelProperty(value = "下单时间")
    private LocalDateTime orderTime;
}
